package com.ruoyi.common.domain.business;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 往来账对象 current_account
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("current_account")
@ApiModel(description = "往来账")
public class CurrentAccount extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "${comment}")
    private Long id;
    /**
     * 单据号
     */
    @Excel(name = "单据号")
    @ApiModelProperty(name = "单据号")
    private String documentNumber;
    /**
     * 客户编码
     */
    @Excel(name = "客户编码")
    @ApiModelProperty(name = "客户编码")
    private String customerCode;
    /**
     * 期末金额
     */
    @Excel(name = "期末金额")
    @ApiModelProperty(name = "期末金额")
    private BigDecimal totalPrice;
    /**
     * 货款
     */
    @Excel(name = "货款")
    @ApiModelProperty(name = "货款")
    private BigDecimal payment;
    /**
     * 逻辑删除(0表示未删除，1表示软删除)
     */
    @TableLogic
    @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
    private Long isDelete;
}
